package com.github.linmt.dbdoc4j.metadata.model.standard;

/**
 * User: Linmt
 * Date: 2022/12/2
 * Time: 13:41
 * Description: 列
 */
public class ColumnModel {
    private String columnName; // 列名
    private String columnType; // 数据库字段类型
    private Integer columnLength; // 长度
    private Boolean nullAble; // 允许空
    private Integer digits; // 精度
    private Boolean primaryKey = false; // 是否主键
    private String remark; // 备注

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public Integer getColumnLength() {
        return columnLength;
    }

    public void setColumnLength(Integer columnLength) {
        this.columnLength = columnLength;
    }

    public Integer getDigits() {
        return digits;
    }

    public void setDigits(Integer digits) {
        this.digits = digits;
    }

    public Boolean isPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(Boolean primaryKey) {
        this.primaryKey = primaryKey;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getNullAble() {
        return nullAble;
    }

    public void setNullAble(Boolean nullAble) {
        this.nullAble = nullAble;
    }

    public Boolean getPrimaryKey() {
        return primaryKey;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }
}
